<extend name="./app/Tpl/Public/template.html" />
<block name="content_body">
	<div class="pad-lr-10">
		<form name="form_search" id="form_search" action="{:U('index')}" method="post">
		    <table width="100%" cellspacing="0" class="search-form">
		        <tbody>
		            <tr>
			            <td>
				            <div class="explain-col">
								<input type="text" name="title" value="{$search.title}" placeholder="供应商名称">
								<input type="text" name="content" value="{$search.content}" placeholder="供应关键字">
								<input type="button"  name="form_search_btn_search"  value="查询" onclick="document.forms['form_search'].submit()"/>
								<input type="button"  name="form_search_btn_add"  value="新增供应商" onclick='redirect("{:U('showAdd')}")'/>
				        	</div>
			            </td>
		            </tr>
		        </tbody>
		    </table>
	    </form>
	    <form  name="form_list" id="form_list" action="{:U('index')}" method="post">
		    <div class="table-list">		
			    <table width="100%" cellspacing="0">
			        <thead>
			            <tr>
			            	<th width="150" align="left">供应商</th>       
			                <th width="200" align="left">描述</th>
			                <th width="80" align="left">联系人</th>
			                <th width="80" align="left">手机</th>
			                <th width="150" align="left">详细地址</th>
			                <th width="80" align="left">审核状态</th>
			      			<th align="left">操作</th>
			            </tr>
			        </thead>
			    	<tbody>
						<volist name="list" id='val'>
				        <tr>
				        	<td align="left"><a href="#" onclick="redirect('{:U('showUpd',array('id'=>$val['id']))}')" >{$val.title}</a></td>
				            <td align="left">{$val.content}</td>
				            <td align="left">{$val.link_man}</td>
				            <td align="left">{$val.link_way}</td>
				            <td align="left">{$val.address}</td>
				            <td align="left">{$val.is_valid|m_is_valid}</td>	
				            <td align="left" class="btn">
			            		<a class="link_btn" href="#" onclick="redirect('{:U('showUpd',array('id'=>$val['id']))}')" >编辑</a>
				            </td>
				        </tr>
				        </volist>
			    	</tbody>
			    </table>
	    	</div>
	    </form>
	</div>
	<div id="dialog_content" title="弹出框"></div>
<script type="text/javascript">

$(function(){
	$( "#dialog_content" ).dialog({
		autoOpen: false,
		width:550,
		height:250
	});
})

</script>
</block>